/**
 * BaseActivity.java
 */
package com.ndm.activity;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.ndm.common.Const;
import com.ndm.common.Factory;
import com.ndm.common.Image;

/**
 * @author gundallove
 * @email gundallove@gmail.com
 */
public class BasicActivity extends Activity implements OnClickListener , OnItemClickListener {

	//title zone
	protected TextView txt_title;
	protected ImageButton btn_title_right;
	protected ImageView btn_title_left;
	
	protected Image image;
	
	public void onCreate(Bundle savedInstanceState) {
		 
		super.onCreate(savedInstanceState);

		image = Factory.getImage(Const.KOR);
		
	 }
	/* (non-Javadoc)
	 * @see android.view.View.OnClickListener#onClick(android.view.View)
	 */
	public void onClick(View v) {
		// TODO Auto-generated method stu
	}
	
	/* (non-Javadoc)
	 * @see android.widget.AdapterView.OnItemClickListener#onItemClick(android.widget.AdapterView, android.view.View, int, long)
	 */
	public void onItemClick(AdapterView<?> adapter, View v, int posiotn, long id) {
		
	}
	
	/**
	 * <pre>
	 * 메세지 출력
	 * @param ctx
	 * @param msg
	 * void
	 * </pre>
	 */
	public void showText(Context ctx , String msg){
		Toast.makeText(ctx, msg , Toast.LENGTH_SHORT).show();
	}
}
